<template>
  <div class="thumb">
    <div class="item-box">
      <a class="img-box">
        <ImgLazy :url="data.imgsrc" />
      </a>
      <PlayButton :duration="1000"></PlayButton>
    </div>
    <div class="item-info">
      <p class="album-name">
        <a>{{ data.music_name }}</a>
      </p>
      <p class="singer">
        <a>{{ data.singer_name }}</a>
      </p>
    </div>
  </div>
</template>

<script>
export default {
  name: "AlbumItem",
  props: {
    data: Object,
  },
};
</script>

<style lang="scss" scoped>
.thumb {
  margin: 0 21px;
  .item-box {
    position: relative;
    &::after {
      content: "";
      display: block;
      width: 100%;
      padding-bottom: 100%;
    }
  }
  .item-info {
    p {
      height: 19px;
      line-height: 19px;
    }
    a {
      color: inherit;
      &:hover {
        color: $ThemeColor;
      }
    }
    .album-name {
      margin-top: 16px;
    }
    .singer {
      margin-top: 12px;
      color: #999;
    }
  }
}
</style>